﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="Profile.aspx.cs" Inherits="admin_Profile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script>
    $(document).ready(function() {
        $('#aspnetForm').validate({
            rules: {
                "ctl00$ContentPlaceHolder1$tbCurrentPass": {
                    required: true
                },
                "ctl00$ContentPlaceHolder1$tbNewPassword": {
                    required: true,
                    minlength: 8
                },
                "ctl00$ContentPlaceHolder1$tbRepeatCurrentPass": {
                    required: true,
                    minlength: 8,
                    equalTo: "#ctl00_ContentPlaceHolder1_tbNewPassword"
                }
            },
            messages: {
                "ctl00$ContentPlaceHolder1$tbCurrentPass": {
                    required: "Current password is required",
                    minlength: "Minimum length is 8 characters"
                },
                "ctl00$ContentPlaceHolder1$tbNewPassword": {
                    required: "New password is required",
                    minlength: "Minimum length is 8 characters"
                },
                "ctl00$ContentPlaceHolder1$tbRepeatCurrentPass": {
                    required: "Repeat password is required",
                    minlength: "Minimum length is 8 characters",
                    equalTo: "Repeat password must be the same with new password"
                }
            }
        });
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="formDiv" style="display: block; width: 600px; background: #EEEEEE">
        <input id="_id" type="hidden" />
        <div id="wrapperLogInInside">
            <div id="UpWrapp">
                <h1 class="titleLoginInside">
                    Edit Profile</h1>
            </div>
            <div id="contentWrappLogin">
                <div class="contentLogin">
                    <div class="inputDiv">
                        <asp:Label ID="Label1" for="" class="tdLeftInside" runat="server" Text="current password"></asp:Label>
                        <asp:TextBox ID="tbCurrentPass" class="searcxBoxNameInside valid" runat="server"></asp:TextBox>
                    </div>
                    <div class="inputDiv">
                        <asp:Label ID="Label2" for="" class="tdLeftInside" runat="server" Text="new password"></asp:Label>
                        <asp:TextBox ID="tbNewPassword" class="searcxBoxNameInside valid" runat="server"></asp:TextBox>
                    </div>
                    <div class="inputDiv">
                        <asp:Label ID="Label3" for="" class="tdLeftInside" runat="server" Text="repeat password"></asp:Label>
                        <asp:TextBox ID="tbRepeatCurrentPass" class="searcxBoxNameInside valid" runat="server"></asp:TextBox>
                    </div>
                    <div class="inputDiv">
                        <asp:Button ID="btnSave" CssClass="buttonInside" runat="server" Text="Submit" 
                            onclick="btnSave_Click" />
                    </div>
                </div>
            </div>
            <div id="FooterMenuWrappLogin">
            </div>
        </div>
    </div>
</asp:Content>

